//---------------------------------------
#include "Game.h"
#include "Renderer.h"
//---------------------------------------
using namespace test;
//---------------------------------------
bool Game::init (pg1::Renderer& rkRenderer)
{
	static const float SIZE = 0.5f;
	m_akVertices[0].x = -SIZE; m_akVertices[0].y = SIZE;	m_akVertices[0].z = 0.0f;
	m_akVertices[1].x = SIZE;  m_akVertices[1].y = SIZE;	m_akVertices[1].z = 0.0f;
	m_akVertices[2].x = -SIZE; m_akVertices[2].y = -SIZE;	m_akVertices[2].z = 0.0f;
	m_akVertices[3].x = SIZE;  m_akVertices[3].y = -SIZE;	m_akVertices[.3].z = 0.0f;


	m_akVertices[0].color= PG1_COLOR_RGB(255,0,0);
	m_akVertices[1].color= PG1_COLOR_RGB(255,0,0);
	m_akVertices[2].color= PG1_COLOR_RGB(255,0,0);
	m_akVertices[3].color= PG1_COLOR_RGB(255,0,0);

	return true;
}
//---------------------------------------
void Game::frame (pg1::Renderer& rkRenderer)
{
	rkRenderer.draw(m_akVertices,pg1::TriangleStrip,4);
}
//---------------------------------------
void Game::deinit()
{

}
//---------------------------------------
